package cn.rxyb.desgin.chainofreponsibilit;

/**
 * @author YJH
 * @version 1.0
 * @description
 * @date 2020/7/6 13:36
 */
public class ConcreteHandler1 extends Handler {

    @Override
    public void HandleRequest(String request) {

        if (request.trim().equals("one")) {
            System.out.println("具体处理者1负责处理该请求");
        } else {
            if (null != this.getNext()) {
                getNext().HandleRequest(request);
            } else {
                System.out.println("没有人处理该请求");
            }
        }
    }
}
